package com.example.fireassistant_server.entity;


import com.example.fireassistant_server.enums.FileStatus;
import com.example.fireassistant_server.enums.FileType;
import com.example.fireassistant_server.enums.Storage;
import lombok.Data;

import javax.persistence.*;

@Entity
@Data
public class File extends AbstractEntity {

    private String name;

    @Column(name = "file_key")
    private String key;

    private String ext;

    private Long size;

    @Enumerated(EnumType.STRING)
    private FileType type;

    @Enumerated(EnumType.STRING)
    private Storage storage;

    @Enumerated(EnumType.STRING)
    private FileStatus status = FileStatus.UPLOADING;

}
